//
//  IGCommonApi.h
//  jingdongfang
//
//  Created by BOE on 2017/9/11.
//  Copyright © 2017年 LJL. All rights reserved.
//

#import "IGBaseRequest.h"

///>接口URI - 适用一些没有返回值或者没有入参的简单接口 - 复杂接口自己定义
typedef NS_ENUM(NSInteger, IGiGalleryApiType) {
#pragma mark -Member
    IGiGalleryApiTypeMemberGetPhoneSMS = 1,             ///>注册获取验证码
    IGiGalleryApiTypeMemberFindPwdGetPhoneSMS,          ///>未登录 找回密码获取验证码
    IGiGalleryApiTypeMemberGetPhoneSMSNew,              ///>注册获取验证码
    IGiGalleryApiTypeMemberFindPwdGetPhoneSMSNew,       ///>未登录 找回密码获取验证
#pragma mark -Address
    IGiGalleryApiTypeSetDeafultAddress,                 ///>设置默认地址
    IGiGalleryApiTypeDelAdress,                         ///>删除地址

#pragma mark -Circle
    IGiGalleryApiTypeCircleFocusCircle,                 ///>关注圈子
    IGiGalleryApiTypeCircleTopicLike,                   ///>话题点赞
    IGiGalleryApiTypeCircleTopicDel,                    ///>话题删除
    
#pragma mark -消息
    IGiGalleryApiTypeDelBundingMsg                      ///>关注圈子

};

@interface IGCommonApi : IGBaseRequest

@property (nonatomic, assign) IGiGalleryApiType apiType;
- (instancetype)initWithApiType:(IGiGalleryApiType)apiType;

#pragma mark -Member
///>apiType = IGiGalleryApiTypeMemberGetPhoneSMS、IGiGalleryApiTypeMemberFindPwdGetPhoneSMS、 IGiGalleryApiTypeMemberGetCaptcha
@property (nonatomic, copy) NSString *phone;
@property (nonatomic, copy) NSString *code;

#pragma mark -Address
///>apiType=IGiGalleryApiTypeSetDeafultAddress,IGiGalleryApiTypeDelAdress
@property (nonatomic, copy) NSString *addressId;
    
#pragma mark -Circle
///>apiType = IGiGalleryApiTypeCircleFocusCircle
@property (nonatomic, copy) NSString *circleId;

///>apiType = IGiGalleryApiTypeCircleTopicLike、IGiGalleryApiTypeCircleTopicDel
@property (nonatomic, copy) NSString *topicId;

#pragma mark -Message
///>apiType = IGiGalleryApiTypeDelBundingMsg
@property (nonatomic, copy) NSString *bid;

@end

@interface IGCommonModel : IGBaseModel
    
@property (nonatomic, copy) NSString *msg;
@property (nonatomic, copy) NSString *code;

@end

@interface IGCommonResp : IGBaseResp
    
@property (nonatomic, copy) IGCommonModel *data;

@end
